﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Frw.Protocols.Communications;

namespace Test.Services.Commands
{
    public class ServiceCommand : ICommunicationMessage
    {
        private object m_string = string.Empty;

        public object CommunicationBag
        {
            get
            {
                return m_string;
            }
            set
            {
                if (value.GetType() != typeof(string))
                    throw new ArgumentException(string.Format("Communication bag type mismatch error. Gets {0}, expected string", value.GetType().Name));

                m_string = value;
            }
        }
    }
}
